﻿CREATE FUNCTION [audit].[GetTraceColFilterType]
(@ColumnNo INT)
RETURNS VARCHAR (20)
AS
BEGIN
	DECLARE @ReturnValue varchar(20)

	SELECT @ReturnValue = [FilterType]
	FROM [config].[TraceColumns]
	WHERE([number] = @ColumnNo)

	RETURN(@ReturnValue)
END